<?php

class Jnd_User_Model extends Jnd_User
{

    /**
     *
     * @param Jnd_User $initval            
     */
    function __construct ($initval)
    {
        $class = $this->_model;
        $tableClass = $this->_table;
        $table = new $tableClass();
        $cle = $table->info('primary');
        $cle = $initval->{$cle[1]};
        $model = new $class($cle);
        
        $this->_utilisateur = $model;
    }

    /**
     *
     * @return string
     */
    public function __toString ()
    {
        return (string) $this->recupAttributLdap("dn");
    }
}

